<?php

namespace App\Http\ViewComposers;

use Illuminate\Contracts\View\View;
use DB;
use Session;
use Auth;
class ProfileComposer
{
    public function compose(View $view)
    {	
    	 //打印电影类型显示到导航栏
        $ftype = DB::table('film_types')->get();
        // dd($ftype[1]->type_id);
        //按地区查询类型显示到导航栏
        $farea = DB::table('areas')->get();

        
   
        $view->withLeixing($ftype);
        $view->withDiqu($farea);

    }     
        
}